<?php
namespace App\Models;

use Illuminate\Database\Eloquent\Model;

//用户模型
class ProblemClass extends Model
{

    public $timestamps = false;

    protected $table = 'problem_class';

    protected $primaryKey = 'problem_classID';

    //白名单
    protected $fillable = [
        'problem_classID',
        'title',
        'img',
        'type',
        'sort',
        'status',
        'id',
        'time',
        'img_oss',
    ];
    //与问题列表进行关联
    public function problemlist()
    {
        return $this->hasMany('App\\Models\\ProblemList', 'problem_classID', 'problem_classID');
    }

}
